function myInstanceOf(left, right) {
    let rightVal = right.prototype
    let leftVal = left.__proto__
    while(true) {
        if(leftVal === null) return false
        if(leftVal === rightVal) return true
        leftVal = leftVal.__proto__
    }
}
let obj = {}
console.log(myInstanceOf(obj, Object))